package com.repair.api.category.service;


import com.repair.api.category.request.ServiceQeuryByIdRequest;
import com.repair.api.category.request.param.ServiceCategoryDeleteParam;
import com.repair.api.category.request.param.ServiceCategoryGetParam;
import com.repair.api.category.request.param.ServiceCategorySaveParam;
import com.repair.api.category.response.ServiceQueryIdResponse;
import com.repair.api.category.response.ServiceQueryNameResponse;
import com.repair.api.category.response.data.CategoryInfo;

import java.util.List;

public interface CategoryFacadeService {
    List<CategoryInfo> getAllCategories(ServiceCategoryGetParam serviceCategoryGetParam);

    ServiceQueryIdResponse getServiceIdById(ServiceQeuryByIdRequest request);
    /**
     * 通过服务id查询服务名
     * @param request 服务id
     * @return ServiceQueryNameResponse
     */
    ServiceQueryNameResponse getServiceNameById(ServiceQeuryByIdRequest request);

    void save(ServiceCategorySaveParam serviceCategorySaveParam);

    void delete(ServiceCategoryDeleteParam serviceCategoryDeleteParam);
}